package cn.itcast.nems.order.dao.mapper;

import cn.itcast.nems.order.dao.entity.OrderRefundLine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 退款单-行/明细 Mapper 接口
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
@Mapper
public interface OrderRefundLineMapper extends BaseMapper<OrderRefundLine> {

    /**
     * 根据退费单号查询退费单行号（仅在退费单和退费单行一一对应时有效）
     *
     * @param refundId 退费单号
     * @return 退费单行号
     */
    String selectIdByRefunId(@Param("refundId") String refundId);
}
